#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void swap(int* x, int* y)
{
	int tmp = *x;
	*x = *y;
	*y = tmp;
}

void sort(int* a, int* b, int* c)
{
	if (*a < *b)
	{
		swap(a, b);
	}
	if (*b < *c)
	{
		swap(b, c);
	}
	if (*a < *b)
	{
		swap(a, b);
	}
}

int main()
{
	int a = 0;
	int b = 0;
	int c = 0;
	scanf("%d %d %d", &a, &b, &c);
	sort(&a, &b, &c);
	printf("%d %d %d", a, b, c);
	return 0;
}
